# -*- coding: utf-8 -*-
"""
Created on Mon Sep  6 23:49:13 2021

@author: 刘长奇-2019300677
"""
str1=input('please input the name of hardware:')
str2=input('please input the typr of file:')
import os
print([item for item in os.listdir(os.path.expanduser(str1)) if item.endswith(str2)])
